package com.swjd.demo8.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("T_news")
public class TNews {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String title;
    private Integer topicid;
    private String name;
    private String summary;
    private String content;

    @Override
    public String toString() {
        return "TNews{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", topicid=" + topicid +
                ", name='" + name + '\'' +
                ", summary='" + summary + '\'' +
                ", content='" + content + '\'' +
                '}';
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setTopicid(Integer topicid) {
        this.topicid = topicid;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getId() {
        return id;
    }

    public String getTitle() {
        return title;
    }

    public Integer getTopicid() {
        return topicid;
    }

    public String getName() {
        return name;
    }

    public String getSummary() {
        return summary;
    }

    public String getContent() {
        return content;
    }
}
